﻿using EP.Base.BaseService.Manager.Interface.Common;
using Newtonsoft.Json;

namespace EP.Base.BaseService.Manager.Common
{
    public class Json:IJson
    {
        public T DeserializeObject<T>(string value)
        {
            return JsonConvert.DeserializeObject<T>(value);
        }

        public string SerializeObject(object value)
        {
            if (value == null)
                return string.Empty;
            return JsonConvert.SerializeObject(value);
        }
    }
}
